/*
*资产配置
*获取所有配置方案
*assetstrategy.js
*/
var Mock = require('mockjs');
exports.response = function (req, res) {
  return {
    "msg":"OK",
    "code":0,
    "data":[
      {
        "strategyName":"测试1",
        "strategyDescription":"测试1",
        "createTime":"2012-12-18",
        "updateTime":"2012-12-18",
        "strategyId":10,
        "assets":[
          {
            "aComponentId":17,//标的id
            "productCode":"H11001",//产品code
            "assetCode":"test02",//资产大类code
            "assetId":2,//资产指数（基金）id
            "assetName":"多投1",//资产大类名称
            "productName":"中证全债指数"//产品名称
          },
          {
            "aComponentId":18,
            "productCode":"000300",
            "assetCode":"test01",
            "assetId":1,
            "assetName":"大类资产1",
            "productName":"沪深300"
          }
        ],
      },
      {
        "strategyId":1,
        "strategyName":"大类资产配置",
        "createTime":"2017-12-18",
        "updateTime":"2017-12-18",
        "strategyDescription":'大类资产配置',
        'assets':[
          {
            assetId:'沪深300',
            assetCode:'股票多头'
          },
          {
            assetId:'企业债指数',
            assetCode:'债券'
          },
         ]
      },
      {
        "strategyId":2,
        "strategyName":"股票资产配置",
        "createTime":"2017-12-18",
        "updateTime":"2017-12-18",
        "strategyDescription":'股票资产配置',
        'assets':[
          {
            assetId:'沪深3000',
            assetCode:'股票多头'
          },
          {
            assetId:'企业债指数2',
            assetCode:'债券'
          },
         ]
      },
    ],
  }
}
